package com.common.server.constant;

/**
 * ClassName: UserConstant
 * Package: com.common.server.constant
 * Description:
 *
 * @Author Memory
 * @Create 2024/12/26 15:16
 * @Version 1.0
 */
public interface UserConstant {
    /**
     * 用户登录态键
     */
    String USER_LOGIN_STATE = "user_login";

    /**
     * 盐值，混淆密码
     */
     String SALT = "memory";

    /**
     * Token 路径
     */
    String TOKEN__KEY = "license:token:%s:%s";

    /**
     * 访问白名单路径
     */
    String USER_LOGIN_WHITE_PATH = "/backend-server/user/login";
    String USER_REGISTER_WHITE_PATH = "/backend-server/user/register";
    String USER_GET_LOGIN_WHITE_PATH = "/backend-server/user/get/login";
    String SWAGGER_DOC_WHITE_PATH = "/backend-server/doc.html";
    String SWAGGER_RESOURCES_WHITE_PATH = "/backend-server/swagger-resources";
    String SWAGGER_RESOURCES_CONFIGURATION_UI_WHITE_PATH = "/backend-server/swagger-resources/configuration/ui";
    String SWAGGER_API_DOCS_WHITE_PATH = "/backend-server/v2/api-docs";

    /**
     * 默认角色
     */
    String DEFAULT_ROLE = "user";

    /**
     * 管理员角色
     */
    String ADMIN_ROLE = "admin";

    /**
     * 被封号
     */
    String BAN_ROLE = "ban";

    /**
     * 每日签到领取积分
     */
    int SIGN_IN_TIME = 100;
    // endregion

    /**
     * 签名
     */
    String SIGN_NAME = "阿里云短信测试";

    /**
     * 模板码
     */
    String TEMPLATE_CODE = "SMS_154950909";
}
